# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Allan McRae <mcrae_allan@hotmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-lingua-en-numbers-ordinate
pkgver=1.05
pkgrel=1
pkgdesc="Go from cardinal (53) to ordinal (53rd)"
arch=('any')
url="https://search.cpan.org/dist/Lingua-EN-Numbers-Ordinate"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Lingua-EN-Numbers-Ordinate-$pkgver.tar.gz)
md5sums=('638df2d2d97dd464bb0fcc58880561cd')

build() {
  cd  "$srcdir"/Lingua-EN-Numbers-Ordinate-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Lingua-EN-Numbers-Ordinate-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
